<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var z=0;
        var arr=new Array(32,65,79,9,6,3,99,66,88)
        for (i=0;i<arr.length;i++){
            for (j=0;j<arr.length;j++){
                if (arr[i]<arr[j]){
                    z=arr[i];
                    arr[i]=arr[j];
                    arr[j]=z;
                }
            }
        }
        console.log(arr);
    </script>
</head>
<body>

</body>
</html>